import Vue from 'vue'
import Vuex from 'vuex'
import State from './vuex/state'
import Mutations from './vuex/mutations'
import Actions from './vuex/actions'
import Getters from './vuex/getters'

import Desk from './vuex/modules/desk/desk';
import Order from './vuex/modules/order/order';
import Home from './vuex/modules/home/home';
Vue.use(Vuex);

const store = new Vuex.Store({
    state: State,
    getters: Getters,
    mutations: Mutations,
    actions: Actions,
    modules: {
        Desk,
        Order,
        Home
    }
})

export default store;